package org.thanos.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.thanos.demo.server.NettyTcpServer;

@Configuration
public class NettyConfig {

    @Bean(initMethod = "start", destroyMethod = "destroy")
    public NettyTcpServer nettyTcpServer() {
        return new NettyTcpServer();
    }
}
